package com.guigu.ssyx.activity.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.atguigu.ssyx.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 秒杀活动商品关联
 * </p>
 *
 * @author liuyang
 * @since 2025-09-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("seckill_sku")
@ApiModel(value="SeckillSku对象", description="秒杀活动商品关联")
public class SeckillSku extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "秒杀活动id")
    @TableField("seckill_id")
    private Long seckillId;

    @ApiModelProperty(value = "活动场次id")
    @TableField("seckill_time_id")
    private Long seckillTimeId;

    @ApiModelProperty(value = "skuId")
    @TableField("sku_id")
    private Long skuId;

    @ApiModelProperty(value = "sku名称")
    @TableField("sku_name")
    private String skuName;

    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty(value = "秒杀价格")
    @TableField("seckill_price")
    private BigDecimal seckillPrice;

    @ApiModelProperty(value = "秒杀库存")
    @TableField("seckill_stock")
    private BigDecimal seckillStock;

    @ApiModelProperty(value = "每人限购数量")
    @TableField("seckill_limit")
    private BigDecimal seckillLimit;

    @ApiModelProperty(value = "秒杀销量")
    @TableField("seckill_sale")
    private Integer seckillSale;

    @ApiModelProperty(value = "排序")
    @TableField("seckill_sort")
    private Integer seckillSort;


}
